package Package.VariadicParameters;

import java.util.ArrayList;

public class Demo1 {
    private  String name;
    private String sex;
    private int age;

    public Demo1(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public Demo1() {
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public void Demo(int ...a){
//
        for (int i:a
             ) {
            System.out.println(i);
        }
    }
}
